#include<iostream>
using namespace std;
int main(){
	string n;
	int sum=0, k=-1;
	int result[100];
	string num[10]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"}; 
	cin>>n;
	for(int i=0;i<n.size();i++){
		sum+=n[i]-'0';
	}
	while(sum){
		k++;
		int j=sum%10;
		result[k]=j;
		sum/=10;
	}
	cout<<num[result[k]];
	for(int i=k-1;i>=0;i--){
		cout<<" "<<num[result[i]];
	}
	return 0;
}
